<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <title>ActionDispatch::Routing::ConsoleFormatter</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <link rel="stylesheet" href="../../../css/reset.css" type="text/css" media="screen" />
<link rel="stylesheet" href="../../../css/main.css" type="text/css" media="screen" />
<link rel="stylesheet" href="../../../css/github.css" type="text/css" media="screen" />
<script src="../../../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../js/jquery-effect.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../js/main.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../js/highlight.pack.js" type="text/javascript" charset="utf-8"></script>

</head>

<body>     
    <div class="banner">
        
            <span>Ruby on Rails v4.0.0</span><br />
        
        <h1>
            <span class="type">Class</span> 
            ActionDispatch::Routing::ConsoleFormatter 
            
                <span class="parent">&lt; 
                    
                    <a href="../../Object.html">Object</a>
                    
                </span>
            
        </h1>
        <ul class="files">
            
            <li><a href="../../../files/actionpack/lib/action_dispatch/routing/inspector_rb.html">actionpack/lib/action_dispatch/routing/inspector.rb</a></li>
            
        </ul>
    </div>
    <div id="bodyContent">
        <div id="content">
  


  


  
  


  


  
    <!-- Method ref -->
    <div class="sectiontitle">Methods</div>
    <dl class="methods">
      
        <dt>H</dt>
        <dd>
          <ul>
            
              
              <li>
                <a href="ConsoleFormatter.html#method-i-header">header</a>
              </li>
            
          </ul>
        </dd>
      
        <dt>N</dt>
        <dd>
          <ul>
            
              
              <li>
                <a href="ConsoleFormatter.html#method-c-new">new</a>,
              </li>
            
              
              <li>
                <a href="ConsoleFormatter.html#method-i-no_routes">no_routes</a>
              </li>
            
          </ul>
        </dd>
      
        <dt>R</dt>
        <dd>
          <ul>
            
              
              <li>
                <a href="ConsoleFormatter.html#method-i-result">result</a>
              </li>
            
          </ul>
        </dd>
      
        <dt>S</dt>
        <dd>
          <ul>
            
              
              <li>
                <a href="ConsoleFormatter.html#method-i-section">section</a>,
              </li>
            
              
              <li>
                <a href="ConsoleFormatter.html#method-i-section_title">section_title</a>
              </li>
            
          </ul>
        </dd>
      
    </dl>
  

  



  

    

    

    


    


    <!-- Methods -->
    
      <div class="sectiontitle">Class Public methods</div>
      
        <div class="method">
          <div class="title method-title" id="method-c-new">
            
              <b>new</b>()
            
            <a href="ConsoleFormatter.html#method-c-new" name="method-c-new" class="permalink">Link</a>
          </div>
          
          
            <div class="description">
              
            </div>
          
          
          
          
          
            
            <div class="sourcecode">
              
              <p class="source-link">
                Source: 
                <a href="javascript:toggleSource('method-c-new_source')" id="l_method-c-new_source">show</a>
                
                  | <a href="https://github.com/rails/rails/blob/decfa35d4a239ed807f055fef3cef4884ed605c1/actionpack/lib/action_dispatch/routing/inspector.rb#L150" target="_blank" class="github_url">on GitHub</a>
                
              </p>
              <div id="method-c-new_source" class="dyn-source">
                <pre><span class="ruby-comment"># File actionpack/lib/action_dispatch/routing/inspector.rb, line 150</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword ruby-title">initialize</span>
  <span class="ruby-ivar">@buffer</span> = []
<span class="ruby-keyword">end</span></pre>
              </div>
            </div>
            
          </div>
                  
      <div class="sectiontitle">Instance Public methods</div>
      
        <div class="method">
          <div class="title method-title" id="method-i-header">
            
              <b>header</b>(routes)
            
            <a href="ConsoleFormatter.html#method-i-header" name="method-i-header" class="permalink">Link</a>
          </div>
          
          
            <div class="description">
              
            </div>
          
          
          
          
          
            
            <div class="sourcecode">
              
              <p class="source-link">
                Source: 
                <a href="javascript:toggleSource('method-i-header_source')" id="l_method-i-header_source">show</a>
                
                  | <a href="https://github.com/rails/rails/blob/decfa35d4a239ed807f055fef3cef4884ed605c1/actionpack/lib/action_dispatch/routing/inspector.rb#L166" target="_blank" class="github_url">on GitHub</a>
                
              </p>
              <div id="method-i-header_source" class="dyn-source">
                <pre><span class="ruby-comment"># File actionpack/lib/action_dispatch/routing/inspector.rb, line 166</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword ruby-title">header</span>(<span class="ruby-identifier">routes</span>)
  <span class="ruby-ivar">@buffer</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">draw_header</span>(<span class="ruby-identifier">routes</span>)
<span class="ruby-keyword">end</span></pre>
              </div>
            </div>
            
          </div>
        
        <div class="method">
          <div class="title method-title" id="method-i-no_routes">
            
              <b>no_routes</b>()
            
            <a href="ConsoleFormatter.html#method-i-no_routes" name="method-i-no_routes" class="permalink">Link</a>
          </div>
          
          
            <div class="description">
              
            </div>
          
          
          
          
          
            
            <div class="sourcecode">
              
              <p class="source-link">
                Source: 
                <a href="javascript:toggleSource('method-i-no_routes_source')" id="l_method-i-no_routes_source">show</a>
                
                  | <a href="https://github.com/rails/rails/blob/decfa35d4a239ed807f055fef3cef4884ed605c1/actionpack/lib/action_dispatch/routing/inspector.rb#L170" target="_blank" class="github_url">on GitHub</a>
                
              </p>
              <div id="method-i-no_routes_source" class="dyn-source">
                <pre><span class="ruby-comment"># File actionpack/lib/action_dispatch/routing/inspector.rb, line 170</span>
      <span class="ruby-keyword">def</span> <span class="ruby-keyword ruby-title">no_routes</span>
        <span class="ruby-ivar">@buffer</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-string">&quot;          You don't have any routes defined!

          Please add some routes in config/routes.rb.

          For more information about routes, see the Rails guide: http://guides.rubyonrails.org/routing.html.
&quot;</span>.<span class="ruby-identifier">strip_heredoc</span>
      <span class="ruby-keyword">end</span></pre>
              </div>
            </div>
            
          </div>
        
        <div class="method">
          <div class="title method-title" id="method-i-result">
            
              <b>result</b>()
            
            <a href="ConsoleFormatter.html#method-i-result" name="method-i-result" class="permalink">Link</a>
          </div>
          
          
            <div class="description">
              
            </div>
          
          
          
          
          
            
            <div class="sourcecode">
              
              <p class="source-link">
                Source: 
                <a href="javascript:toggleSource('method-i-result_source')" id="l_method-i-result_source">show</a>
                
                  | <a href="https://github.com/rails/rails/blob/decfa35d4a239ed807f055fef3cef4884ed605c1/actionpack/lib/action_dispatch/routing/inspector.rb#L154" target="_blank" class="github_url">on GitHub</a>
                
              </p>
              <div id="method-i-result_source" class="dyn-source">
                <pre><span class="ruby-comment"># File actionpack/lib/action_dispatch/routing/inspector.rb, line 154</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword ruby-title">result</span>
  <span class="ruby-ivar">@buffer</span>.<span class="ruby-identifier">join</span>(<span class="ruby-string">&quot;\n&quot;</span>)
<span class="ruby-keyword">end</span></pre>
              </div>
            </div>
            
          </div>
        
        <div class="method">
          <div class="title method-title" id="method-i-section">
            
              <b>section</b>(routes)
            
            <a href="ConsoleFormatter.html#method-i-section" name="method-i-section" class="permalink">Link</a>
          </div>
          
          
            <div class="description">
              
            </div>
          
          
          
          
          
            
            <div class="sourcecode">
              
              <p class="source-link">
                Source: 
                <a href="javascript:toggleSource('method-i-section_source')" id="l_method-i-section_source">show</a>
                
                  | <a href="https://github.com/rails/rails/blob/decfa35d4a239ed807f055fef3cef4884ed605c1/actionpack/lib/action_dispatch/routing/inspector.rb#L162" target="_blank" class="github_url">on GitHub</a>
                
              </p>
              <div id="method-i-section_source" class="dyn-source">
                <pre><span class="ruby-comment"># File actionpack/lib/action_dispatch/routing/inspector.rb, line 162</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword ruby-title">section</span>(<span class="ruby-identifier">routes</span>)
  <span class="ruby-ivar">@buffer</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">draw_section</span>(<span class="ruby-identifier">routes</span>)
<span class="ruby-keyword">end</span></pre>
              </div>
            </div>
            
          </div>
        
        <div class="method">
          <div class="title method-title" id="method-i-section_title">
            
              <b>section_title</b>(title)
            
            <a href="ConsoleFormatter.html#method-i-section_title" name="method-i-section_title" class="permalink">Link</a>
          </div>
          
          
            <div class="description">
              
            </div>
          
          
          
          
          
            
            <div class="sourcecode">
              
              <p class="source-link">
                Source: 
                <a href="javascript:toggleSource('method-i-section_title_source')" id="l_method-i-section_title_source">show</a>
                
                  | <a href="https://github.com/rails/rails/blob/decfa35d4a239ed807f055fef3cef4884ed605c1/actionpack/lib/action_dispatch/routing/inspector.rb#L158" target="_blank" class="github_url">on GitHub</a>
                
              </p>
              <div id="method-i-section_title_source" class="dyn-source">
                <pre><span class="ruby-comment"># File actionpack/lib/action_dispatch/routing/inspector.rb, line 158</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword ruby-title">section_title</span>(<span class="ruby-identifier">title</span>)
  <span class="ruby-ivar">@buffer</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;\n#{title}:&quot;</span>
<span class="ruby-keyword">end</span></pre>
              </div>
            </div>
            
          </div>
                    </div>

    </div>
  </body>
</html>    